Optimal. Leaf size=15 \[ \frac{\sin ^2(a+b x)}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0108554, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2564, 30} \[ \frac{\sin ^2(a+b x)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2564
Rule 30
Rubi steps
\begin{align*} \int \cos (a+b x) \sin (a+b x) \, dx &=\frac{\operatorname{Subst}(\int x \, dx,x,\sin (a+b x))}{b}\\ &=\frac{\sin ^2(a+b x)}{2 b}\\ \end{align*}
Mathematica [B] time = 0.0126988, size = 37, normalized size = 2.47 \[ \frac{1}{2} \left (\frac{\sin (2 a) \sin (2 b x)}{2 b}-\frac{\cos (2 a) \cos (2 b x)}{2 b}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.001, size = 14, normalized size = 0.9 \begin{align*}{\frac{ \left ( \sin \left ( bx+a \right ) \right ) ^{2}}{2\,b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01269, size = 18, normalized size = 1.2 \begin{align*} -\frac{\cos \left (b x + a\right )^{2}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.67621, size = 31, normalized size = 2.07 \begin{align*} -\frac{\cos \left (b x + a\right )^{2}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.23076, size = 19, normalized size = 1.27 \begin{align*} \begin{cases} \frac{\sin ^{2}{\left (a + b x \right )}}{2 b} & \text{for}\: b \neq 0 \\x \sin{\left (a \right )} \cos{\left (a \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14891, size = 18, normalized size = 1.2 \begin{align*} \frac{\sin \left (b x + a\right )^{2}}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]